package main

import "fmt"

func main() {

	var zeroSlice []int

	fmt.Println(zeroSlice == nil)    // slice的零值为 nil
	zeroSlice = append(zeroSlice, 1) // slice append 复合零值可用的规则
	zeroSlice = append(zeroSlice, 1)
	zeroSlice = append(zeroSlice, 1)

	fmt.Println(zeroSlice)

}
